package com.lightboat.system.domain.request;

import com.lightboat.common.core.domain.bo.LogisticsPrintBo;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Schema(title = "物流打印请求")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogisticsPrintRequest implements Serializable {

    /**
     * 打印模板编码
     */
    @NotBlank
    @SchemaProperty(name = "打印模板编码")
    private String templateCode;


    /**
     * 打印接口地址
     */
    @NotNull
    @Valid
    @Size(min = 1)
    @SchemaProperty(name = "打印数据集合")
    private List<LogisticsPrintBo.LogisticsPrintDataBo> printDatas;
}
